import request from '@/utils/request'

// 下载用户导入模板
export function importTemplate() {
  return request({
    url: '/his/drugs/importTemplate',
    method: 'get'
  })
}


// 查询岗位列表
export function drugsManufactorList() {
  return request({
    url: '/his/drugs/drugsManufactorList',
    method: 'get',
  })
}

// 查询岗位列表
export function listDrugs(query) {
  return request({
    url: '/his/drugs/list',
    method: 'get',
    params: query
  })
}



// 查询岗位详细
export function getDrugs(drugsId) {
  return request({
    url: '/his/drugs/' + drugsId,
    method: 'get'
  })
}

// 新增
export function addDrugs(data) {
  return request({
    url: '/his/drugs',
    method: 'post',
    data: data
  })
}

// 修改
export function updateDrugs(data) {
  return request({
    url: '/his/drugs',
    method: 'put',
    data: data
  })
}

// 删除
export function delDrugs(drugsIds) {
  return request({
    url: '/his/drugs/' + drugsIds,
    method: 'delete'
  })
}
